import i18n from '../../i18n/i18n'
export const tableOption = {
  border: true,
  index: false,
  selection: true,
  indexLabel: i18n.t('publics.serial'),
  indexWidth: i18n.t('language') === 'language' ? 80 : 50,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  column: [
    {
      label: i18n.t('shop.hotTitle'),
      prop: 'title',
      searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
      search: true
    },
    {
      label: i18n.t('shop.hotContent'),
      prop: 'content',
      searchLabelWidth: i18n.t('language') === 'language' ? 140 : 80,
      search: true
    },
    {
      label: i18n.t('shop.recDate'),
      prop: 'recDate',
      sortable: true
    },
    {
      label: i18n.t('brand.sequence'),
      prop: 'seq',
      sortable: true
    },
    {
      label: i18n.t('shop.enableStatus'),
      prop: 'status',
      type: 'select',
      slot: true,
      searchLabelWidth: i18n.t('language') === 'language' ? 140 : 80,
      search: true,
      dicData: [
        {
          label: i18n.t('groups.notEnabled'),
          value: 0
        }, {
          label: i18n.t('brand.enAble'),
          value: 1
        }
      ]
    }
  ]
}
